package com.wayne.pojo;

import java.io.Serializable;
import java.time.LocalDateTime;

public class Order implements Serializable {
  private Integer id;
  private Integer uid;
  private LocalDateTime orderTime;
  private Double total;
  private User user;

  @Override
  public String toString() {
    return "Order{" +
        "id=" + id +
        ", uid=" + uid +
        ", orderTime=" + orderTime +
        ", total=" + total +
        ", user=" + user +
        '}';
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public LocalDateTime getOrderTime() {
    return orderTime;
  }

  public void setOrderTime(LocalDateTime orderTime) {
    this.orderTime = orderTime;
  }

  public Double getTotal() {
    return total;
  }

  public void setTotal(Double total) {
    this.total = total;
  }

  public User getUser() {
    return user;
  }

  public void setUser(User user) {
    this.user = user;
  }
}
